package com.zzl.finance.data.constant;

/**
 * 企业冻结状态，0未冻结 1 冻结
 * @author : gull
 * @date : 2022/2/16 15:02
 */
public enum EnterpriseStatusEnum {
    /**
     * 企业冻结状态，0未冻结 1 冻结
     */
    ENTERPRISE_STATUS_UNFREEZING(0, "未冻结"),
    ENTERPRISE_STATUS_FREEZING(1, "冻结"),

    ;


    private final Integer code;
    private final String value;


    EnterpriseStatusEnum(Integer code, String value) {
        this.code = code;
        this.value = value;
    }

    public static String getValue(Integer code) {
        for (EnterpriseStatusEnum statusEnum : EnterpriseStatusEnum.values()) {
            if (statusEnum.code.equals(code)) {
                return statusEnum.value;
            }
        }
        return "";
    }


    public Integer getCode() {
        return code;
    }

    public String getValue() {
        return value;
    }
}
